package Junit;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Test;

import DatabaseImpl.ClassImpl;
import DatabaseImpl.ClasschoiceImpl;
import DatabaseImpl.StudentImpl;
import DatabasePO.ClassPO;
import DatabasePO.StudentPO;

public class TestStudentDB {
	
	@Test
	public void connect(){
		StudentImpl s=new StudentImpl();
		StudentPO stu=s.find("116");
		System.out.println(stu.getName()+"mingzi");
				
	}
	
@Test
	public void test(){
		ClassImpl c=new ClassImpl();
		ArrayList<ClassPO> list=c.getClasses();
		assertEquals(list.size(),3);
		
	}
    
  


}
